<template>
  <el-button :size="size" @click="onRefresh">刷新</el-button>
</template>

<script>
export default {
  name: 'AdminRefresh',
  props: {
    size: {
      type: String,
      default: 'small',
    },
  },
  methods: {
    onRefresh() {
      this.$router.reload()
    },
  },
}
</script>
